import request from '@/utils/request'

// 查询课程报名信息列表
export function listCourseregistrations(query) {
  return request({
    url: '/system/courseregistrations/list',
    method: 'get',
    params: query
  })
}

// 查询课程报名信息详细
export function getCourseregistrations(registrationId) {
  return request({
    url: '/system/courseregistrations/' + registrationId,
    method: 'get'
  })
}

// 新增课程报名信息
export function addCourseregistrations(data) {
  return request({
    url: '/system/courseregistrations',
    method: 'post',
    data: data
  })
}

// 修改课程报名信息
export function updateCourseregistrations(data) {
  return request({
    url: '/system/courseregistrations',
    method: 'put',
    data: data
  })
}

// 删除课程报名信息
export function delCourseregistrations(registrationId) {
  return request({
    url: '/system/courseregistrations/' + registrationId,
    method: 'delete'
  })
}
